package io.e2x.testground.fruitstore.service;

import io.e2x.testground.fruitstore.dal.entities.Sku;
import io.e2x.testground.fruitstore.dal.entities.StoreSpu;
import reactor.core.publisher.Mono;

public interface ProductService {
    Mono<Void> addSpu(StoreSpu storeSpu, Sku sku);
    Mono<Void> updateSpu(StoreSpu storeSpu, Sku sku);
    Mono<Void> deleteSpu(StoreSpu storeSpu);
    Mono<StoreSpu> findBySpuNo(String spuNo);

    Mono<StoreSpu> findBySpuName(String name);
}
